package com.ruoyi.gwc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 申请维修审批对象 t_approval_repair
 * 
 * @author wp
 * @date 2024-12-13
 */
public class TApprovalRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审批单id */
    private Long approvalId;

    /** 维修单id */
    private Long repairId;

    /** 所属作业公司 */
    private Long companyId;
    @Excel(name = "公司名称",sort = 1)
    private String companyName;

    /** 节点状态（0:提交申请，1：审批，2：分配，3：维修，4：领导人确认，5：送修人确认，6：待还钥匙，7：完成） */
    private Long nodeStatus;

    /** 审批状态（0:通过，1：不通过，2：待审批） */
    @Excel(name = "审批状态", readConverterExp = "0=:通过，1：不通过，2：待审批",sort = 2, dictType = "approvealStatus")
    private Long approvealStatus;

    /** 备注说明 */
    @Excel(name = "备注说明",sort = 3)
    private String remarks;

    public void setApprovalId(Long approvalId) 
    {
        this.approvalId = approvalId;
    }

    public Long getApprovalId() 
    {
        return approvalId;
    }
    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setNodeStatus(Long nodeStatus) 
    {
        this.nodeStatus = nodeStatus;
    }

    public Long getNodeStatus() 
    {
        return nodeStatus;
    }
    public void setApprovealStatus(Long approvealStatus) 
    {
        this.approvealStatus = approvealStatus;
    }

    public Long getApprovealStatus() 
    {
        return approvealStatus;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }
    public String getCompanyName(){  return companyName;  }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approvalId", getApprovalId())
            .append("repairId", getRepairId())
            .append("companyId", getCompanyId())
            .append("companyName", getCompanyName())
            .append("nodeStatus", getNodeStatus())
            .append("approvealStatus", getApprovealStatus())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
